import request from "@/request"

export function curUserInfo() {
    return request({
        method: 'get',
        url: '/user/curUser',
    })
}
export function getAllUseInfo(pagination) {
    return request({
        method: 'post',
        url: '/admin/getAllUseInfo',
        data: pagination
    })
}
export function deleteUser(id) {
    return request({
        method: 'get',
        url: `/admin/deleteUser/${id}`,
    })
}
export function deleteOwnArticle(id) {
    return request({
        method: 'get',
        url: `/user/deleteOwnArticle/${id}`,
    })
}
